﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>excel导出</title>
    <link href="@Url.Content("~/Content/css/global.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/main.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/themes/default/easyui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/themes/gray/tabs.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/themes/icon.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/plan.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.8.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.easyui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/plan.js")" type="text/javascript"></script>
</head>
<body>
    <form name="excelExport" method="post" id="excelExport" action="@Url.Content("~/PlanManagement/ExportInspectionToExcel")">
        <input type="submit" id="btnExportExcel" name="export" value="导出巡检结果" style="display: none;" />
        <input type="button" id="btnExport" value="导出巡检结果" onclick="exportExcel();" />
        <input type="hidden" name="dataDetail" id="dataDetail" value="" />
    </form>

    <script type="text/javascript">
        //将巡检对象导出到excel
        var exportExcel = function () {

            var data = parent.exportExcel();

            $('#dataDetail').val(JSON.stringify(data));

            $('#btnExportExcel').click();
        };

    </script>
</body>
</html>
